package org.example.facade;

public class ModenPostOffice {

    private ILetterProcess letterProcess=new LetterProcessImpl();
    private Police letterPolice=new Police();

    public void sendLetter(String context,String address){
        letterProcess.writeContext(context);
        //检查
        letterPolice.checkLetter(letterProcess);
        letterProcess.fillEnvelope(address);
        letterProcess.letterInotoEnvelope();
        letterProcess.sendLetter();
    }
}
